package info.opensoaring.server.jdo;

import javax.jdo.annotations.EmbeddedOnly;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;

@EmbeddedOnly
@PersistenceCapable
public class EncodedPath {

    @Persistent
    private String encodedPoints;

    @Persistent
    private String encodedLevels;

    public EncodedPath(String encodedPoints, String encodedLevels) {
	this.encodedPoints = encodedPoints;
	this.encodedLevels = encodedLevels;
    }

    public String getEncodedPoints() {
	return encodedPoints;
    }

    public void setEncodedPoints(String encodedPoints) {
	this.encodedPoints = encodedPoints;
    }

    public String getEncodedLevels() {
	return encodedLevels;
    }

    public void setEncodedLevels(String encodedLevels) {
	this.encodedLevels = encodedLevels;
    }
    
    public String toString() {
	return "{EncodedPoints=" + getEncodedPoints() + ",EncodedLevels=" + getEncodedLevels() + "}";
    }
}
